<?php

namespace DEV\SISBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Articulos
 *
 * @ORM\Table(name="articulos")
 * @ORM\Entity(repositoryClass="DEV\SISBundle\Repository\ArticulosRepository")
 */
class Articulos
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="smallint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="codigo", type="string", length=50, nullable=false)
     */
    private $codigo;

    /**
     * @var string
     *
     * @ORM\Column(name="descripcion", type="text", nullable=true)
     */
    private $descripcion;

    /**
     * @var string
     *
     * @ORM\Column(name="stock_min", type="string", length=50, nullable=true)
     */
    private $stockMin;

    /**
     * @var float
     *
     * @ORM\Column(name="piva", type="float", nullable=true)
     */
    private $piva;

    /**
     * @var float
     *
     * @ORM\Column(name="ganancia", type="float", nullable=true)
     */
    private $ganancia;

    /**
     * @var \Rubros
     *
     * @ORM\ManyToOne(targetEntity="Rubros")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="rubros_id", referencedColumnName="id")
     * })
     */
    private $rubros;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set codigo
     *
     * @param string $codigo
     * @return Articulos
     */
    public function setCodigo($codigo)
    {
        $this->codigo = $codigo;
    
        return $this;
    }

    /**
     * Get codigo
     *
     * @return string 
     */
    public function getCodigo()
    {
        return $this->codigo;
    }

    /**
     * Set descripcion
     *
     * @param string $descripcion
     * @return Articulos
     */
    public function setDescripcion($descripcion)
    {
        $this->descripcion = $descripcion;
    
        return $this;
    }

    /**
     * Get descripcion
     *
     * @return string 
     */
    public function getDescripcion()
    {
        return $this->descripcion;
    }

    /**
     * Set stockMin
     *
     * @param string $stockMin
     * @return Articulos
     */
    public function setStockMin($stockMin)
    {
        $this->stockMin = $stockMin;
    
        return $this;
    }

    /**
     * Get stockMin
     *
     * @return string 
     */
    public function getStockMin()
    {
        return $this->stockMin;
    }

    /**
     * Set piva
     *
     * @param boolean $piva
     * @return Articulos
     */
    public function setPiva($piva)
    {
        $this->piva = $piva;
    
        return $this;
    }

    /**
     * Get piva
     *
     * @return boolean 
     */
    public function getPiva()
    {
        return $this->piva;
    }

    /**
     * Set ganancia
     *
     * @param boolean $ganancia
     * @return Articulos
     */
    public function setGanancia($ganancia)
    {
        $this->ganancia = $ganancia;
    
        return $this;
    }

    /**
     * Get ganancia
     *
     * @return boolean 
     */
    public function getGanancia()
    {
        return $this->ganancia;
    }

    /**
     * Set rubros
     *
     * @param \DEV\SISBundle\Entity\Rubros $rubros
     * @return Articulos
     */
    public function setRubros(\DEV\SISBundle\Entity\Rubros $rubros = null)
    {
        $this->rubros = $rubros;
    
        return $this;
    }

    /**
     * Get rubros
     *
     * @return \DEV\SISBundle\Entity\Rubros 
     */
    public function getRubros()
    {
        return $this->rubros;
    }
}